package com.medisched.medisched.domain;

import java.util.Date;

/**
 * 消息对象 message
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public class Message 
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 接收人ID */
    private Long userId;

    /** 消息内容 */
    private String content;

    /** 是否已读：0未读，1已读 */
    private Long isRead;

    private Date createTime;

    public Message() {
    }

    public Message(long serialVersionUID, Long id, Long userId, String content, Long isRead) {

        this.id = id;
        this.userId = userId;
        this.content = content;
        this.isRead = isRead;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setIsRead(Long isRead) 
    {
        this.isRead = isRead;
    }

    public Long getIsRead() 
    {
        return isRead;
    }

    public String toString() {
        return "Message{serialVersionUID = " + serialVersionUID + ", id = " + id + ", userId = " + userId + ", content = " + content + ", isRead = " + isRead + "}";
    }
}
